Developer --> Technical Publications
PATH Hardware Documentation > Device Managers and Drivers > ATA Devices > ATA Device Software Guide


ATA_Identify

The ATA_Identify function returns the device identification data from the selected device. The identification data contains information necessary to perform I/O to the device. Refer to the ATA-2 Specification for the format and the information description provided by the data.

The manager function code for the ATA_Identify function is $13.

The parameter block associated with this function is defined below:

typedef struct
{
ataPBHdr /* ataPBHdr parameter block */
SInt8 ataStatusReg; /* <-- Last ATA status image */
sInt8 ataErrorReg; /* <-- Last ATA error image */
SInt16 ataReserved; /* Reserved */
UInt32 BlindTxSize; /* <-- Set to 512 on return */
UInt8 *DataBuf; /* <--> Buffer for the data */
UInt32 ataRequestCount; /* <-- Indicates remaining
byte count */
UInt32 ataActualTxCnt; /* <-- Actual transfer count */
UInt32 ataReserved2; /* Reserved */
device PBRegBlock; /* <-- taskfile image sent */
/* for the command */
UInt16 Reserved3[8]; /* Reserved */
} ataIdentify;

Field descriptions

ataPBHdr
See the definition of the ataPBHdr parameter block.
ataStatusReg
Last ATA taskfile status register image.
ataErrorReg
Last ATA taskfile error register image. This field is only valid if the LSB (error bit) of the ataStatusReg field is set .
BlindTxSize
Size in bytes of the device identify data returned.
DataBuf
A pointer to the data buffer for the device identify data. The length of the buffer must be at least 512 bytes.
ataRequestCount
Number of remaining bytes to transfer.
ataActualTxCnt
Number of bytes transferred.
RegBlock
Taskfile image sent to the device.
RESULT CODES

See Table A-1 for possible result codes returned by the ATA Manager.


© 1999 Apple Computer, Inc. — (Last Updated 30 Oct 97)

Previous | Back Up One Level | Next | Show Frames | Hide Frames